/*
 * button.h
 *
 *  Created on: Jan 2, 2024
 *      Author: tangle
 */

#ifndef MODULES_BUTTON_BUTTON_H_
#define MODULES_BUTTON_BUTTON_H_

#include "drivers/button/driver_button.h"
#include "cmsis_os.h"
#include "gpio.h"
#include <stdint.h>

#include "drivers/led/driver_led.h"
#include "modules/led/led.h"

void buttontask_fun(void const * argument);

void button_init(void);

uint8_t button0_pin_level(void);
void button0_attach_fun(PressEvent event);

uint8_t button1_pin_level(void);
void button1_attach_fun(PressEvent event);

uint8_t button2_pin_level(void);
void button2_attach_fun(PressEvent event);

uint8_t buttonup_pin_level(void);
void buttonup_attach_fun(PressEvent event);


#endif /* MODULES_BUTTON_BUTTON_H_ */
